import layout from '@/views/layout.vue'
import index from '@/views/seconds/index.vue'
import find from '@/views/seconds/find.vue'
import info from '@/views/seconds/info.vue'
import my from '@/views/seconds/my.vue'

import detail from '@/views/detail.vue'
import register from '@/views/register.vue'
import login from '@/views/login.vue'
import cityList from '@/views/cityList.vue'
import publish from '@/views/publish.vue'
import areaName from '@/views/areaName.vue'

const routes = [
  {
    path: '/',
    component: layout,
    redirect: '/index',
    children: [
      { path: 'index', component: index },
      { path: 'find', component: find },
      { path: 'info', component: info },
      { path: 'my', component: my }
    ]
  },
  { path: '/detail/', component: detail },
  { path: '/register', component: register },
  { path: '/login', component: login },
  { path: '/cityList', component: cityList },
  { path: '/publish', component: publish },
  { path: '/areaName/', component: areaName }
]
export default routes
